﻿/***************************************************************************
*		功能：     用户表实体类(代码生成工具搞定的)
*		作者：     Sands
*		日期：     2012-09-08 06:26
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Sands.DataAccess;
using Sands.Common;
using System.Collections.Generic;
using System.Linq;
namespace SAWeb.Model
{
	/// <summary>
	/// 用户表
	/// </summary>
	[Serializable]
	[HTable( TableName = "Users" ,  Remake = "用户表")]
	public partial class Users :  IModel 
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return UserId == 0; } 

	    
		/// <summary>
		/// 用户ID
		/// </summary>
		[HColumn( Remake = "用户ID" ,  IsPrimary = true ,  IsIdentity = true)]
		public int UserId { set; get; }
        

		/// <summary>
		/// 用户登录名
		/// </summary>
		[HColumn( Remake = "用户登录名" ,  Length = 200 ,  IsNullable = true)]
		public string UserCode { set; get; }
        

		/// <summary>
		/// 用户密码
		/// </summary>
		[HColumn( Remake = "用户密码" ,  Length = 200 ,  IsNullable = true)]
		public string Password { set; get; }
        

		/// <summary>
		/// 用户真实姓名
		/// </summary>
		[HColumn( Remake = "用户真实姓名" ,  Length = 200 ,  IsNullable = true)]
		public string Name { set; get; }
        

		/// <summary>
		/// 用户性别
		/// </summary>
		[HColumn( Remake = "用户性别")]
		public bool Sex { set; get; }
        

		/// <summary>
		/// 用户居住地址
		/// </summary>
		[HColumn( Remake = "用户居住地址" ,  Length = 200 ,  IsNullable = true)]
		public string Address { set; get; }
        

		/// <summary>
		/// 邮箱
		/// </summary>
		[HColumn( Remake = "邮箱" ,  Length = 200 ,  IsNullable = true)]
		public string Email { set; get; }
        

		/// <summary>
		/// 角色
		/// </summary>
		[HColumn( Remake = "角色")]
		public int Role { set; get; }
        

		
		

		
	}

	public partial class Db
	{
			public static class Users 
			{

				static  Users ()
				{
				 
					UserId = new Field("Users","UserId");
				 

					UserCode = new Field("Users","UserCode");
				 

					Password = new Field("Users","Password");
				 

					Name = new Field("Users","Name");
				 

					Sex = new Field("Users","Sex");
				 

					Address = new Field("Users","Address");
				 

					Email = new Field("Users","Email");
				 

					Role = new Field("Users","Role");
				 

				}
    			 
				 /// <summary>
				 /// 用户ID
				 /// </summary>
				 public static Field UserId { private set;get; }
	    		 

				 /// <summary>
				 /// 用户登录名
				 /// </summary>
				 public static Field UserCode { private set;get; }
	    		 

				 /// <summary>
				 /// 用户密码
				 /// </summary>
				 public static Field Password { private set;get; }
	    		 

				 /// <summary>
				 /// 用户真实姓名
				 /// </summary>
				 public static Field Name { private set;get; }
	    		 

				 /// <summary>
				 /// 用户性别
				 /// </summary>
				 public static Field Sex { private set;get; }
	    		 

				 /// <summary>
				 /// 用户居住地址
				 /// </summary>
				 public static Field Address { private set;get; }
	    		 

				 /// <summary>
				 /// 邮箱
				 /// </summary>
				 public static Field Email { private set;get; }
	    		 

				 /// <summary>
				 /// 角色
				 /// </summary>
				 public static Field Role { private set;get; }
	    		 

			}
	}
}